
#ifndef __PROBABILITY_H__
#define __PROBABILITY_H__

class Probability
{
public:
#define OUT_OF_RANGE_OF_PROBABILITY     1
    Probability(double prob) throw (int); // OUT_OF_RANGE_OF_PROBABILITY is the exception
    Probability operator&(const Probability& prob) const;
    Probability operator|(const Probability& prob) const;
    Probability operator!(void) const;
    bool operator==(const Probability& prob) const;
    bool operator!=(const Probability& prob) const;

private:
    double probability;
};

#endif

